  /**
   * Generate time : 2012-11-12 5:15:22
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZM92 
 * table comment : 采煤 
 */
public class ZM92 extends DaoEPBase {

	private String fdKeyId = " ";		/* 专业计划ID*/

	private Double fdYearPlanSum = new Double(0);		/* 当年年计划*/
	private Double fdYearActualSum = new Double(0);		/* 当年实际*/
	private Double fdMonthPlanSum = new Double(0);		/* 当月计划*/
	private Double fdMonthActualSum = new Double(0);		/* 当月实际*/
	private Double fdYesdaySum = new Double(0);		/* 昨日产量*/
	

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);

	eiColumn = new EiColumn("fdYearPlanSum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("当年年计划");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdYearActualSum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("当年实际");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMonthPlanSum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("当月计划");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMonthActualSum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("当月实际");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdYesdaySum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("昨日产量");
	eiMetadata.addMeta(eiColumn);

	}
	/**
	 * the constructor
	 */
	public ZM92() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	
	/**
	 * get the fdYearPlanSum - 
	 * @return the fdYearPlanSum
	 */
	public Double getFdYearPlanSum() {
		return this.fdYearPlanSum;
	}
	
	/**
	 * set the fdYearPlanSum - 
	 */
	public void setFdYearPlanSum(Double fdYearPlanSum) {
		this.fdYearPlanSum = fdYearPlanSum;
	}
	
	/**
	 * get the fdYearActualSum - 
	 * @return the fdYearActualSum
	 */
	public Double getFdYearActualSum() {
		return this.fdYearActualSum;
	}
	
	/**
	 * set the fdYearActualSum - 
	 */
	public void setFdYearActualSum(Double fdYearActualSum) {
		this.fdYearActualSum = fdYearActualSum;
	}
	
	/**
	 * get the fdMonthPlanSum - 
	 * @return the fdMonthPlanSum
	 */
	public Double getFdMonthPlanSum() {
		return this.fdMonthPlanSum;
	}
	
	/**
	 * set the fdMonthPlanSum -
	 */
	public void setFdMonthPlanSum(Double fdMonthPlanSum) {
		this.fdMonthPlanSum = fdMonthPlanSum;
	}
	
	/**
	 * get the fdMonthActualSum - 
	 * @return the fdMonthActualSum
	 */
	public Double getFdMonthActualSum() {
		return this.fdMonthActualSum;
	}
	
	/**
	 * set the fdMonthActualSum - 
	 */
	public void setFdMonthActualSum(Double fdMonthActualSum) {
		this.fdMonthActualSum = fdMonthActualSum;
	}
	
	/**
	 * get the fdYesdaySum - 
	 * @return the fdYesdaySum
	 */
	public Double getFdYesdaySum() {
		return this.fdYesdaySum;
	}
	
	/**
	 * set the fdYesdaySum - 
	 */
	public void setFdYesdaySum(Double fdYesdaySum) {
		this.fdYesdaySum = fdYesdaySum;
	}
	
	
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdYearPlanSum(NumberUtils.toDouble(StringUtils.toString(map.get("fdYearPlanSum")), fdYearPlanSum));
		setFdYearActualSum(NumberUtils.toDouble(StringUtils.toString(map.get("fdYearActualSum")), fdYearActualSum));
		setFdMonthPlanSum(NumberUtils.toDouble(StringUtils.toString(map.get("fdMonthPlanSum")), fdMonthPlanSum));
		setFdMonthActualSum(NumberUtils.toDouble(StringUtils.toString(map.get("fdMonthActualSum")), fdMonthActualSum));
		setFdYesdaySum(NumberUtils.toDouble(StringUtils.toString(map.get("fdYesdaySum")), fdYesdaySum));		
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdYearPlanSum",StringUtils.toString(fdYearPlanSum, eiMetadata.getMeta("fdYearPlanSum")));	
			map.put("fdYearActualSum",StringUtils.toString(fdYearActualSum, eiMetadata.getMeta("fdYearActualSum")));	
			map.put("fdMonthPlanSum",StringUtils.toString(fdMonthPlanSum, eiMetadata.getMeta("fdMonthPlanSum")));	
			map.put("fdMonthActualSum",StringUtils.toString(fdMonthActualSum, eiMetadata.getMeta("fdMonthActualSum")));	
			map.put("fdYesdaySum",StringUtils.toString(fdYesdaySum, eiMetadata.getMeta("fdYesdaySum")));				
		return map;
	
	}
}